package de.geckocraft.AchievementCraft.commands;

import org.bukkit.ChatColor;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;

import de.geckocraft.AchievementCraft.main.main;

public class CommandsMain
implements CommandExecutor
{

	private main plugin;
	public CommandsMain(main  plugin)
	{
		this.plugin =  plugin;
	}

	public boolean onCommand(CommandSender sender, Command cmd, String cmdLabel, String[] args)
	{
		if (!(sender instanceof Player)) {
			sender.sendMessage(ChatColor.RED + "Sie sind kein Spieler!");
			return true;
		}
		Player p = (Player) sender;
		if (cmd.getName().equalsIgnoreCase("ach"))
		{
			if (args.length > 0)
			{
				
				if (args[0].equalsIgnoreCase("list"))
				{
					p.sendMessage("Geht");
					return true;
				}
			}
		}
		return false;
	}

}
